package com.restaurant.springboot.repositories;

import com.restaurant.springboot.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;

public interface UserRepository extends JpaRepository<UserEntity,Integer> {

    UserEntity getUserEntityByOpenId(String openId);

    boolean existsByOpenId(String openId);

    UserEntity findByOpenId(String openId);

}
